package com.qf.dao;

import com.qf.entity.Coupon;

import java.sql.SQLException;
import java.util.List;

public interface CouponDao {
    int addCoupon(Coupon coupon) throws SQLException;

    //查询总记录数
    int selectAllCouponCount() throws SQLException;

    List<Coupon> selectCouponListByPage(Integer currentPageNo, Integer pageSize) throws SQLException;

    Coupon selectCouponByCid(Integer cid) throws SQLException;
    //删除优惠券
    int deleteCouponByCid(Integer cid) throws SQLException;


}
